#include <stdio.h>
#include <stdlib.h>

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/sem.h>
#include <signal.h>
#include <errno.h>
#define SEM_NAME "./sem_file"

void init_sem(int semid, int sem_num, int val);
int creat_sem(int nsems);
void delete_sem(int semid,int semnum);
void p_sem(int semid, int semnum);
void v_sem(int semid, int semnum);
